import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'
import permission from './permission'
import staticRoutes from './staticRoutes'

const routes: Array<RouteRecordRaw> = [
    ...staticRoutes
]

const router = createRouter({
    history: createWebHistory(),
    linkExactActiveClass: 'active',
    routes
})

permission(router)

export default router